class publicData {
  constructor(mainParam) {
    this.mainParam = mainParam;
    this._name = null;
    this._age = null;
    this._tel = null;
  }

  get name() {
    return this._name;
  }
  set name(v) {
    if (this._name === v) {
      return;
    }
    this._name = v;
  }

  get age() {
    return this._age;
  }
  set age(v) {
    if (this._age === v) {
      return;
    }
    this._age = v;
  }

  get tel() {
    return this._tel;
  }
  set tel(v) {
    if (this._tel === v) {
      return;
    }
    this._tel = v;
  }

  resetData() {
    this._name = null;
    this._age = null;
    this._tel = null;
  }
}

export { publicData };
